package com.sys.util;

@SuppressWarnings("unused")
public class floatUtils {
    public static float floorFloat(float value, int num) {
        int saveNum = (int) Math.pow(10, num);
        value *= saveNum;
        value = (float) Math.floor(value);
        value /= saveNum;
        return value;
    }

    public static float ceilFloat(float value, int num) {
        int saveNum = (int) Math.pow(10, num);
        value *= saveNum;
        value = (float) Math.ceil(value);
        value /= saveNum;
        return value;
    }
}
